<!DOCTYPE html>
<html>
  <head>
    <title>TerminusDB Welcome Screen</title>
  </head>
  <body>
    <form method="POST" action="/submit">
      <label>Password</label>
      <input name="password" type="password"/>
      <input id="public_url" name="public_url" type="hidden"/>
      <input id="port" name="port" type="hidden"/>
      <input type="submit">
    </form>
    <script>
      window.onload = () => {
          const public_url = window.location.origin;
          const port = window.location.port;
          console.log(public_url);
          console.log(port);
          document.getElementById("public_url").value = public_url;
          document.getElementById("port").value = port;
      }
    </script>
  </body>
</html>
